package com.kgc.collection.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kgc.collection.util.CwStatusUtil;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class PrePay {
    private int id;
    private String docCode;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date docDate;
    private int proId;
    private String proName;
    private int uid;
    private BigDecimal advanceAmount;
    private int status;
    private String notes;

    private int createBy;
    private String createName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    private String updateBy;
    private String updateName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    private int isDelete;
    private BigDecimal settledAmount;
    private BigDecimal unsettledAmount;
    private String sourceSheet;
    private int typeId;
    private int did;

    private String statusStr;
    //连表查询的数据
    private String uidStr;
    private String didStr;
    private String cidStr;

    private List<PrePayDetail> list;

    @Override
    public String toString() {
        return "PrePay{" +
                "id=" + id +
                ", docCode='" + docCode + '\'' +
                ", docDate=" + docDate +
                ", proId=" + proId +
                ", proName='" + proName + '\'' +
                ", uid=" + uid +
                ", advanceAmount=" + advanceAmount +
                ", status=" + status +
                ", statusStr='" + statusStr + '\'' +
                ", notes='" + notes + '\'' +
                ", createBy=" + createBy +
                ", createName='" + createName + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateName='" + updateName + '\'' +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                ", settledAmount=" + settledAmount +
                ", unsettledAmount=" + unsettledAmount +
                ", sourceSheet='" + sourceSheet + '\'' +
                ", typeId=" + typeId +
                ", did=" + did +
                ", uidStr='" + uidStr + '\'' +
                ", didStr='" + didStr + '\'' +
                ", cidStr='" + cidStr + '\'' +
                ", list=" + list +
                '}';
    }

    public List<PrePayDetail> getList() {
        return list;
    }

    public void setList(List<PrePayDetail> list) {
        this.list = list;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDocCode() {
        return docCode;
    }

    public void setDocCode(String docCode) {
        this.docCode = docCode;
    }

    public Date getDocDate() {
        return docDate;
    }

    public void setDocDate(Date docDate) {
        this.docDate = docDate;
    }

    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public BigDecimal getAdvanceAmount() {
        return advanceAmount;
    }

    public void setAdvanceAmount(BigDecimal advanceAmount) {
        this.advanceAmount = advanceAmount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
        statusStr = CwStatusUtil.transStatusToStr(status);
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public int getCreateBy() {
        return createBy;
    }

    public void setCreateBy(int createBy) {
        this.createBy = createBy;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public BigDecimal getSettledAmount() {
        return settledAmount;
    }

    public void setSettledAmount(BigDecimal settledAmount) {
        this.settledAmount = settledAmount;
    }

    public BigDecimal getUnsettledAmount() {
        return unsettledAmount;
    }

    public void setUnsettledAmount(BigDecimal unsettledAmount) {
        this.unsettledAmount = unsettledAmount;
    }

    public String getSourceSheet() {
        return sourceSheet;
    }

    public void setSourceSheet(String sourceSheet) {
        this.sourceSheet = sourceSheet;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getUidStr() {
        return uidStr;
    }

    public void setUidStr(String uidStr) {
        this.uidStr = uidStr;
    }

    public String getDidStr() {
        return didStr;
    }

    public void setDidStr(String didStr) {
        this.didStr = didStr;
    }

    public String getCidStr() {
        return cidStr;
    }

    public void setCidStr(String cidStr) {
        this.cidStr = cidStr;
    }
}
